@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
CustomerBillType Management ::
@parent
@stop

@section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">CustomerBillType list</li>
@stop

@section('content.main')

<p>{{ link_to_route('car_balance.customerBillType.create', 'Add new CustomerBillType', null, array('class' => 'btn btn-info')) }}</p>


{{  $customerBillTypes->links() }}

<table class="table table-bordered table-striped table-hover">
    <thead>
    <tr>
                <th>Id</th>
                <th>Customer</th>
                <th>Bill Type</th>
                <th>Date from</th>
                <th>Date to</th>
                <th>Commission</th>

        <th class="span2">Actions</th>
    </tr>
    </thead>
    <tbody>
    @foreach ($customerBillTypes as $customerBillType)
    <tr>
        <td>{{  link_to_route('car_balance.customerBillType.show', $customerBillType->id, array($customerBillType->id), array()) }}</td>
        <td>{{  $customerBillType->customer_id }}</td>
        <td>{{  $customerBillType->bill_type }}</td>
        <td>{{  $customerBillType->date_from }}</td>
        <td>{{  $customerBillType->date_to }}</td>
        <td>{{  $customerBillType->commission }}</td>


        <td>
            <a href="{{  route('car_balance.customerBillType.edit', $customerBillType->id) }}" class="btn btn-mini">Edit</a>
            <a href="{{  route('car_balance.customerBillType.delete', $customerBillType->id) }}" class="btn btn-mini btn-danger">Delete</a>
        </td>
    </tr>
    @endforeach
    </tbody>
</table>

{{  $customerBillTypes->links() }}

@stop